package com.peiqi.aiproject.controller;

import cn.hutool.http.HttpStatus;
import com.peiqi.aiproject.domain.IdeaToolData;
import com.peiqi.aiproject.domain.Plan;
import com.peiqi.aiproject.domain.vo.ResponseVO;
import com.peiqi.aiproject.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import static com.peiqi.aiproject.domain.vo.ResponseVO.success;

@RestController
@RequestMapping("/getplan")
public class GetPlanController {
    @Resource
    UserService userService;
    @GetMapping()
    public ResponseVO<List<Plan>> plan(){
        return success(HttpStatus.HTTP_OK, userService.findAll());
    }
}
